package sch.frog.creational.builderpattern.product.A;

import sch.frog.creational.builderpattern.product.IPartOne;
import sch.frog.creational.builderpattern.product.IPartTwo;

public class APartTwo implements IPartTwo {

    private final APartOne aPartOne;

    public APartTwo(APartOne aPartOne){
        this.aPartOne = aPartOne;
    }

    @Override
    public void two() {
        System.out.println("part");
    }

    @Override
    public IPartOne getPartOne() {
        return this.aPartOne;
    }
}

